package reflect;

import com.sun.org.glassfish.external.arc.Taxonomy;
import reflect.annotations.AutoRunMethod;

@Taxonomy
public class Teacher {
    public String name;
    @AutoRunMethod
    public void teach(){
        System.out.println("老师在上课");
    }
    public void sleep(){
        System.out.println("老师在睡觉");
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                '}';
    }
}
